from subprocess import Popen, PIPE

def systemCommand(command):
    error = None
    output = None
    try:
        p = Popen(command, shell=True, close_fds=True, stderr=PIPE, stdin=PIPE, stdout=PIPE)
        error = p.stderr.read()
        output = p.stdout.read()
        del(p)
    except:
        pass
    return(output, error)